﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SharedUtils;

namespace GraphEditor
{
    public partial class NameInput : Form
    {
        public Node toName;

        public NameInput(Node toName)
        {
            InitializeComponent();
            this.label1.Text = "Name:";
            this.button1.Text = "Ok";
            this.toName = toName;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            toName.name = this.textBox1.Text;
            this.Close();
        }
    }
}
